// stores/counter.js
import { defineStore } from 'pinia'

export const useloginStore = defineStore('login', {
    state: () => {
        return {
            userInfo: {
                username:'',
                password:''
            }
        }
    },
    // 也可以定义为
    // state: () => ({ count: 0 })
    actions: {
        
    },
})
export const usecartStore = defineStore('cart', {
    state: () => {
        return {

        }
    },
    // 也可以定义为
    // state: () => ({ count: 0 })
    actions: {
        cartlist:[]
    },
})